Pretty easy stuff to install
Fire following commands
# wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
# tar xvfz ImageMagick.tar.gz
[It will create the folder ]
# cd ImageMagick-6.?.?
# ./configure
# make
# make install
Test it
For resizing
# /usr/local/bin/convert -resize 100X100 marmik1.png marmik_thum.png
For converting
# /usr/local/bin/convert marmik1.png marmik1.gif
How to Run with PHP?
Refer my previous post http://vikrant_labde.blogspot.com/2008/02/run-ffmepg-command-with-php.html get the php function form there of ur exec() or system() command failed.
runExternal("/usr/local/bin/convert -resize 100X100 marmik1.png marmik_thum.png", $code );
if($code != "") print "its error mate";
?>
More functions
http://www.imagemagick.org/script/convert.php
Saturday, October 11, 2008
Monday, October 06, 2008
TinyMCE for specific textareas
As per example code of the tinyMCE, its convert all Textareas on the HTML pages into
WYSIWUG editor, which is really stupid stuff by them though.
I have searched a lot about allowing tinyMCE for particular Textareas on the page and its really a common discussion topic on the forum but I haven't got any satisfactory answer. I dont know why all answers are only for Dupal implementation grrrrrrrrr.
Then I looked into tiny_mce.js and I found something like "spefic_textarea" and I searched into tinyMCE manual for this keyword (http://wiki.moxiecode.com/index.php/Special:Search?ns100=1&ns106=1&ns108=1&search=specific_textareas&searchx=Search) and found some help.
Heres is code which will solve your problem.
tinyMCE.init({
// General options
mode : "exact",
elements : "textarea_id1,textarea_id2", // just pass the ID's of your textarea for which you
// want to add the editor
// Your code related other settings, keep it same
cheers..
WYSIWUG editor, which is really stupid stuff by them though.
I have searched a lot about allowing tinyMCE for particular Textareas on the page and its really a common discussion topic on the forum but I haven't got any satisfactory answer. I dont know why all answers are only for Dupal implementation grrrrrrrrr.
Then I looked into tiny_mce.js and I found something like "spefic_textarea" and I searched into tinyMCE manual for this keyword (http://wiki.moxiecode.com/index.php/Special:Search?ns100=1&ns106=1&ns108=1&search=specific_textareas&searchx=Search) and found some help.
Heres is code which will solve your problem.
tinyMCE.init({
// General options
mode : "exact",
elements : "textarea_id1,textarea_id2", // just pass the ID's of your textarea for which you
// want to add the editor
// Your code related other settings, keep it same
cheers..
Subscribe to:
Posts (Atom)